package it.polimi.traveldream.web;


import it.polimi.traveldream.GestioneShowTransportLocal;
import it.polimi.traveldream.TransportDTO;

import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean(name="gestioneShowTransportLocal")
@RequestScoped
public class ShowTransportBean {
	@EJB
	private GestioneShowTransportLocal gestioneShowTransportLocal; 
	
	private List<TransportDTO> transports;
	
	
	public List<TransportDTO> getTransports(){
		this.transports=gestioneShowTransportLocal.showTransport();
		return this.transports;
	}
	
	public void setExcursions(List<TransportDTO> transports){
		this.transports=transports;
	}

}
